package com.example.medical_delivery_system.dao;

import com.example.medical_delivery_system.entity.Order;
import com.example.medical_delivery_system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Param：20201003013
 * Author：李镇荣
 * Data：2022/12/21
 */
public interface AdminOrderMapper {

    int deleteByPrimaryKey(Long orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> findOrderList(PageQueryUtil pageUtil);

    int getTotalOrders(PageQueryUtil pageUtil);

    int deleteBatch(Long[] ids);

    List<Order> findOrdersByNum(@Param("number") int number);
}
